package com.fearless.crm.workbench.dao;

import com.fearless.crm.workbench.entity.Contacts;

import java.util.List;
import java.util.Map;

public interface ContactsDao {

    int saveNewContact(Contacts contacts);

    List<Contacts> searchContactsByNameDao(String cname);

    int getContactTotal();

    List<Contacts> getContactList(Map map);

    List<Contacts> getContactListByCustomerId(String id);

    int deleteContactInCustomerDetail(String contactId);

    int addContactInCustomerDetail(Contacts contacts);

    Contacts queryContactById(String id);

    int updateContactDao(Contacts contacts);

    int deleteBatchContact(String[] ids);
}
